unit uForm_dialog_login;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  Tfrm_dialog_login = class(TForm)
    btn_ok: TButton;
    btn_cancel: TButton;
    edt_login: TEdit;
    edt_password: TEdit;
    lbl_login_capt: TLabel;
    lbl_pasw_capt: TLabel;
    procedure btn_cancelClick(Sender: TObject);
    procedure btn_okClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
     m_ModalResult : boolean;
  end;

var
  frm_dialog_login: Tfrm_dialog_login = nil;

implementation

{$R *.dfm}

procedure Tfrm_dialog_login.btn_cancelClick(Sender: TObject);
begin
  m_ModalResult := false;
    CLose();
end;

procedure Tfrm_dialog_login.btn_okClick(Sender: TObject);
begin
  m_ModalResult := True;
  CLose();
end;

procedure Tfrm_dialog_login.FormCreate(Sender: TObject);
begin
  m_ModalResult := false;

end;

end.
